Merge to Main#3
Conversation
feat: enterprise hardening - request bodies, radix router, and error …
CORE & PERFORMANCE: - Implement zero-allocation request body parsing in Rust core - Upgrade router from O(N) linear scan to O(M) Radix Tree - Optimize binary bridge to support high-throughput body transfers - Implement buffer pooling for body reads to minimize GC pressure FEATURES & MIDDLEWARE: - Add centralized error handling middleware support (app.onError) - Implement built-in CORS middleware with preflight handling - Add schema-agnostic validation middleware (Zod/TypeBox compatible) - Add native support for req.json(), req.text(), and req.body DEVELOPER EXPERIENCE: - Provide full TypeScript definitions (index.d.ts) - Implement self-referencing package exports in package.json - Add comprehensive examples (REST API, CORS, Validation, Middleware) SECURITY: - Add CRLF injection prevention in static response headers - Implement strict max body size limits (1MB) to prevent DoS - Fix Rust borrow checker conflicts for safe concurrent body handling
Feature/enterprise hardening
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (20)
📝 WalkthroughWalkthroughThis PR substantially refactors the HTTP server framework, introducing HTTP request parsing via Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~70 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
BenchMarks show that our current implementation in uno is faster and more efficient than main so merging..
Summary by CodeRabbit
Release Notes
New Features
Security Improvements
Performance
Chores